package com.anon_soft.anon_edit;

import android.app.ActionBar;
import android.app.FragmentTransaction;
import android.app.ActionBar.Tab;

public class editActionbarTabListener implements ActionBar.TabListener
{
	private CodeEditFragment mFragment;
	

	public editActionbarTabListener(CodeEditFragment fragment)
	{
		mFragment = fragment;
	}

	@Override
	public void onTabReselected(Tab tab, FragmentTransaction ft) {
		
		
	}

	@Override
	public void onTabSelected(Tab tab, FragmentTransaction ft) {
		ft.add(R.id.fragmentArea, mFragment, null);
	}

	@Override
	public void onTabUnselected(Tab tab, FragmentTransaction ft) {
		ft.remove(mFragment);
	}

}
